Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a .queue_name method to CallQueue... #2

Closed
wants to merge 2 commits into from

Conversation

JustinAiken
Copy link
Member

  • We can't use .name, because it conflicts with logger or celluloid or
    something.
  • I also have the .work method return the celluloid actor doing the work, so that the queue instance is returned here and makes it into the @queues hash.

...we can't use .name, because it conflicts with logger or celluloid or
something.
...this way, if a CallQueue instance crashes, and gets restarted by it's supervisor, #get_queue will return the restarted queue (or at least a usable proxy to it), instead of returning a reference to a dead, crashed, and burned queue that's dead.
@bklang bklang closed this Dec 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants